<div id="reseller-wrapper">
	<?php include_once('reseller_menu_view.php'); ?>
	<div class="r-head">
		<div class="r-title">Transactions</div>
		<div class="clearfix"></div>
	</div>
	<div>
		<table class="client-table" border="1">
			<thead>
				<tr>
					<td width="20">#</td>
					<td>Transaction No.</td>
					<td>Date</td>
					<td>Product Package</td>
					<td>Total</td>
					<td>Status</td>
					<td>Code</td>
				</tr>
				<?php if(!empty($transactions)){
						foreach($transactions as $k=>$trans){ ?>
						<tr class="tr-ctable">
							<td align="right"><?php echo $k+1 ?></td>
							<td><?php echo $trans->order_number ?></td>
							<td><?php echo date('d/m/y',strtotime($trans->date_created)) ?></td>
							<td><?php echo $trans->name ?></td>
							<td><?php echo number_format($trans->order_total,2).' '.$trans->order_currency ?></td>
							<td><?php echo $trans->order_status ?></td>
							<td><?php echo $trans->code ?></td>
						</tr>
				<?php	}
					 } ?>

			</thead>
			<tbody>
			</tbody>
		</table>
		</div>
	</div>
</div>